package com.freesky.web.manager.remote.panel.fallback;

import com.freesky.common.dao.entity.Panel;
import com.freesky.common.pojo.ZTreeNode;
import com.freesky.common.utils.reponse.JSONResponse;
import com.freesky.web.manager.remote.panel.HomePanelRemote;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class HomePanelRemoteFallback implements HomePanelRemote {
    private Logger logger = LoggerFactory.getLogger(HomePanelRemoteFallback.class);


    @Override
    public List<ZTreeNode> list() {
        logger.error("服务维护中");
        return null;
    }

    @Override
    public JSONResponse add(Panel panel) {
        logger.error("服务维护中");
        return null;
    }

    @Override
    public JSONResponse update(Panel panel) {
        logger.error("服务维护中");
        return null;
    }

    @Override
    public JSONResponse delete(int id) {
        logger.error("服务维护中");
        return null;
    }
}
